import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
import IndexView from "@/Layout/index.vue"

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: LoginView,
  },
  {
    path: '/',
    redirect:"/login"
      
  },
  // {
  //   path: '/index',
  //   name: 'Index',
  //   component: IndexView,
  //   children:[
  //     {
  //       path:'/index/first',
  //       name:"首页",
  //       component:()=> import('@/views/index/first/index.vue') 
  //     }
  //   ]
      
  // },
];
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes
})

export default router
